<?php $this->pageTitle=Yii::app()->name; ?>

<fieldset class="box">
    <legend>User</legend>
    <table>
        <tr>
            <td width="75px">
                <img src="images/klpq.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('My Reports',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'reports/index'))); ?>
            </td>
        </tr>
    </table>
    
</fieldset>

<fieldset class="box" style="visibility:<?php echo Yii::app()->getModule('user')->isAdmin()?'visible':'hidden'; ?>">
    <legend>Administrator</legend>
    <table>

        <tr>
            <td width="75px">
                <img src="images/kdmconfig.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('Manage Organisations',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'organisation/admin'))); ?>
            </td>
            <td width="75px">
                <img src="images/utilities.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('Manage Objects',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'objects/admin'))); ?>
            </td>
        </tr>

        <tr>
            <td width="75px">
                <img src="images/switchuser.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('Manage Mappings',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'qvmapping/admin'))); ?>
            </td>
             <td width="75px">
                <img src="images/utilities.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('Manage QVObjects',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'qvobjects/admin'))); ?>
            </td>
        </tr>

        <tr>
            <td width="75px">
                <img src="images/klpq.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('Manage Reports',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'reports/admin'))); ?>
            </td>
        </tr>

        <tr>
            <td width="75px">
                <img src="images/utilities.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('Manage DynForms',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'adynform/admin'))); ?>
            </td>
            <td width="75px">
                <img src="images/utilities.png" />
            </td>
            <td>
                <?php echo CHtml::linkButton('General Settings',array('submit'=>array('show'),'class'=>'button','style'=>'width:200px','params'=>array('modul'=>'settings/admin'))); ?>
            </td>
        </tr>

    </table>

</fieldset>